<?php
session_start();
$cdnUrl='./';
 
$appId='wxe214ac48790c622f';
$secret='6b7153fc9c94ee2008e71ecbb2313bec';
include 'jssdk.php';
$jssdk = new JSSDK($appId, $secret);
$signPackage = @$jssdk->GetSignPackage();
 
$getN=(int)file_get_contents('renshu.txt');
if (isset($_SESSION['uids'])) {
	 
}else{
	$_SESSION['uids'] = uniqid();
    $num=rand(10,20);
    $getN=$getN + $num;
    file_put_contents('renshu.txt', $getN);
}
 
?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>明治朝食果蔬早餐</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" href="<?php echo $cdnUrl; ?>css/swiper.min.css">
<style>
html,body{width:100%;font-size:12px;font-family:Helvetica,Tahoma, Arial, STXihei,Microsoft YaHei, Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
body{-webkit-overflow-scrolling: touch;overflow-scrolling: touch;overflow-y: scroll;max-width:750px;}
body, div{padding:0px;margin:0px auto;}
.weui-dialog{position:fixed;z-index:5000;width:80%;max-width:300px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#FFF;text-align:center;border-radius:3px;overflow:hidden}.weui-dialog__hd{padding:1.3em 1.6em .5em}.weui-dialog__title{font-weight:400;font-size:18px}.weui-dialog__bd{padding:0 1.6em .8em;min-height:40px;font-size:15px;line-height:1.3;word-wrap:break-word;word-break:break-all;color:#999}.weui-dialog__bd:first-child{padding:1.2em 20px .1em;color:#353535}.weui-dialog__ft{position:relative;line-height:48px;font-size:18px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-dialog__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.weui-dialog__btn{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3CC51F;text-decoration:none;-webkit-tap-highlight-color:transparent;position:relative}.weui-dialog__btn:active{background-color:#EEE}.weui-dialog__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1px solid #D5D5D6;color:#D5D5D6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleX(.5);transform:scaleX(.5)}.weui-dialog__btn:first-child:after{display:none}.weui-dialog__btn_default{color:#353535}.weui-dialog__btn_primary{color:#0BB20C}@media screen and (min-width:1024px){.weui-dialog{width:35%}}.weui-mask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}
.weui-mask_transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}
.js_dialog{display:none;}
.weui-toast{
  position:fixed;
  z-index:5000;
  width:12em;
  min-height:12em;
  top:180px;
  left:50%;
  margin-left:-3.8em;
  background:rgba(17, 17, 17, 0.6);
  text-align:center;
  border-radius:5px;
  color:#FFFFFF;
}
.weui-toast_content{font-size: 16px;}
.weui-dialog, .weui-toast {
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    visibility: visible;
    margin: 0;
    top: 45%;
    z-index: 2000;
}
.weui-loading{
  width:20px;
  height:20px;
  display:inline-block;
  vertical-align:middle;
  -webkit-animation:weuiLoading 1s steps(12, end) infinite;
          animation:weuiLoading 1s steps(12, end) infinite;
  background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
  background-size:100%;
}
@-webkit-keyframes weuiLoading{
  0%{
    -webkit-transform:rotate3d(0, 0, 1, 0deg);
            transform:rotate3d(0, 0, 1, 0deg);
  }
  100%{
    -webkit-transform:rotate3d(0, 0, 1, 360deg);
            transform:rotate3d(0, 0, 1, 360deg);
  }
}
@keyframes weuiLoading{
  0%{
    -webkit-transform:rotate3d(0, 0, 1, 0deg);
            transform:rotate3d(0, 0, 1, 0deg);
  }
  100%{
    -webkit-transform:rotate3d(0, 0, 1, 360deg);
            transform:rotate3d(0, 0, 1, 360deg);
  }
}
.weui-icon_toast.weui-loading {
    margin: 30px 0 0;
    width: 38px;
    height: 38px;
    vertical-align: baseline;
}
.weui-icon_toast {
    font-size: 55px;
    color: white;
    margin-bottom: 6px;
}


-webkit-touch-callout:none;
-webkit-user-select:none;
html{-ms-touch-action:none;}
div:focus, img:focus{
-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-user-modify:read-write-plaintext-only; 
}
div,img,html,body{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;}
*{
  -webkit-text-size-adjust: none;
-webkit-touch-callout:none; /*系统默认菜单被禁用*/
-webkit-user-select:none; /*webkit浏览器*/
-khtml-user-select:none; /*早期浏览器*/
-moz-user-select:none;/*火狐*/
-ms-user-select:none; /*IE10*/
user-select:none;
}
.simg{position:absolute;display:block;}
a{text-decoration:none;}
.txt{position:absolute;text-align:center;text-indent:6px;color:#fff;font-size:12px;z-index:2;border:none;background:transparent;}
.txt::-webkit-input-placeholder{color:#a3a0a0;text-align:left;}
select{position:absolute;color:#787c7f;display:block;background:transparent;border:0px;text-indent:4px;font-size:12px;-webkit-appearance:none;}
.container{position:relative;width:100%;transform:translate3d(0,0,0);width:100%;height:auto;overflow: hidden;}
.p-b, .thebg, .theb2{position:absolute;width:100%;top:0;left:0;}
.page, .p2, .home, .p3-box{position:absolute;width:100%;height:100%;top:0;left:0;overflow:hidden;}
.p2{opacity:0;}
.page{display:none;}
.ltop{top:0;}
.w100, .ltop, .p1-bg{position:absolute;width:100%;left:0;display:block;}
.p1-bg{bottom:0;}
.swiper-container{transform:translate3d(0,0,0);}
.swiper-slide{transform:translate3d(0,0,0);}
.tip{position:absolute;z-index:9;display:none;width:100%;height:100%;background:rgba(0, 0, 0, 0.8);;top:0px;left:0px;}
.pop-t1{position:absolute;width:100%;background:transparent url('<?php echo $cdnUrl ?>img/pop-t1.png?v=2') no-repeat;background-size:cover;}
.p1-txt{position:absolute;width: 80%;left:3.3%;bottom:4%;font-size:14px;color: #fff;}
.p2-choose{position:absolute;width:100%;left:0;}
.p2-end{bottom:0;}
.z-3{z-index: 3;}
.swiper-pagination-bullet{background:transparent url('<?php echo $cdnUrl ?>img/d2.png') no-repeat;background-size:cover;opacity:1;}
.p2-next{background:transparent url('<?php echo $cdnUrl ?>img/p2-next.png') no-repeat;background-size:cover;}
.swiper-pagination-bullet-active{background:transparent url('<?php echo $cdnUrl ?>img/d1.png') no-repeat;background-size:cover;}
.animated{
  -webkit-animation-duration: 1s;animation-duration: 1s;
  -webkit-animation-fill-mode: both;animation-fill-mode: both;
}
.an25{
  -webkit-animation-duration: 2.5s;animation-duration: 2.5s;
}
.ani15{
  -webkit-animation-duration: 1.5s;animation-duration: 1.5s;
  -webkit-animation-fill-mode: both;animation-fill-mode: both;
}
.ani3{-webkit-animation-duration: 3.9s;animation-duration: 3.9s;
  -webkit-animation-fill-mode: both;animation-fill-mode: both;}
.animated.infinite, .ani3.infinite, .ani15.infinite, .an25.infinite{-webkit-animation-iteration-count: infinite; animation-iteration-count: infinite;}
@keyframes fadeInLeft{from {opacity: 0;transform: translate3d(-20%, 0, 0);}to {opacity: 1;transform: translate3d(0, 0, 0);}}
.fadeInLeft{animation-name: fadeInLeft;}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(40%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInRight {
  animation-name: fadeInRight;
}
@keyframes fadeInUp {
  from {opacity: 0;transform: translate3d(0, 30%, 0);}
  to {opacity: 1;transform: translate3d(0, 0, 0);}
}
.fadeInUp {animation-name: fadeInUp;}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.fadeIn {
  animation-name: fadeIn;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -10%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInDown {
  animation-name: fadeInDown;
}
@keyframes flash {
  from,
  50%,
  to {
    opacity: 1;
  }

  25%,
  75% {
    opacity: .2;
  }
}
.p2-shou{opacity:0;}

.flash {
  animation-name: flash;
}

@keyframes flash2{
  from,
  50%,
  to {
    opacity: 1;
  }

  25%,
  75% {
    opacity: .7;
  }
}
.flash2{
  animation-name: flash2;
}
@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}
.pulse {
  animation-name: pulse;
  animation-timing-function: ease-in-out;
}
@keyframes fingerHandle{
  0% {
      transform: scale3d(1, 1, 1) translate(0px,0);
      opacity: 1;
  }
  50% {
      transform: scale3d(.88, .88, .88) translate(50px,0);
      opacity: .5;
  }
  100% {
      transform: scale3d(1, 1, 1) translate(0px,0);
      opacity: 1;
  }
}
.p1-s-move{animation: fingerHandle 4s ease infinite both;}
.hide{display:none;}
.p3{overflow:hidden;}
.p3-press{
 position: absolute;width: 100%;height: 100%;opacity:0;
-webkit-touch-callout:none;
-webkit-user-select:none; 
-khtml-user-select:none; 
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
.p3-shou
.animated.d3s{animation-delay: .3s;}
.animated.d5s{animation-delay: .5s;}
.animated.d8s{animation-delay: .8s;}
.animated.d1s{animation-delay: 1s;}
.an25.d2s{animation-delay: 2s;}


@keyframes flipInY {
  from {
    transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
    animation-timing-function: ease-in;
  }

  60% {
    transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
    opacity: 1;
  }

  80% {
    transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
  }

  to {
    transform: perspective(400px);
  }
}

.flipInY {
  backface-visibility: visible !important;
  animation-name: flipInY;
}
</style><script>var _hmt = _hmt || []; (function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?112c00133e1521aa5ffe1560ff3a8e15";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);})();</script></head>
<body>
<div class="container">
<div class="p1 page">
   <img class="p1-bg" src="<?php echo $cdnUrl ?>img/p1.jpg">
   <img class="p1-logo simg animated fadeInDown" src="<?php echo $cdnUrl ?>img/p1-logo.png">
   <div class="thebg"> 
     <div class="p1-p2 w100">
       <img class="p1-p1 simg animated fadeInUp d3s" src="<?php echo $cdnUrl ?>img/p1-p1.png">
       <img class="p1-s simg  animated fadeIn d1s" src="<?php echo $cdnUrl ?>img/p1-s.png">
       
     </div>
     
     <img class="p1-t1 w100 animated fadeInLeft" src="<?php echo $cdnUrl ?>img/p1-t1.png">
   </div>
   <img class="p1-btn simg  ani3 flash infinite" src="<?php echo $cdnUrl ?>img/p1-btn2.png">
   <img class="p1-btn simg ani3 flash2 infinite" src="<?php echo $cdnUrl ?>img/p1-btn.png">
       
   <div class="p1-txt">当前参与人数： <?php echo $getN ?></div>
</div>

<div class="p2">
   <img class="ltop p2-bg" src="<?php echo $cdnUrl ?>img/p2.jpg">
   <img class="p2-end w100" src="<?php echo $cdnUrl ?>img/p2-f1.png">
   <img class="p2-t1 simg" src="<?php echo $cdnUrl ?>img/p1-logo.png">
   
   <div class="thebg">
    
     <img class="p2-t2 w100" src="<?php echo $cdnUrl ?>img/p2-t2.png">
     <img class="p2-z1 w100" src="<?php echo $cdnUrl ?>img/p2-z1.png?v=2">
     
     <div class="p2-choose ">
       <div class="swiper-container p2-s1 ">
              <div class="swiper-wrapper">
                <?php for ($i=1; $i<= 6; $i++) {  ?>
                <div class="swiper-slide">
                  <img class="ltop" src="./img/c<?php echo $i ?>.png?v=3">
                  <img class="p2-t4 simg" src="<?php echo $cdnUrl ?>img/p2-t4.png">
                  <div class="p2-snai simg"></div>
                </div>
                <?php } ?>
                 
              </div>
        </div>
        
        <img class="p2-1 simg z-3 " src="<?php echo $cdnUrl ?>img/p2-1.png">
        <img class="p2-2 simg z-3" src="<?php echo $cdnUrl ?>img/p2-2b.png">
        <img class="p2-3 simg z-3" src="<?php echo $cdnUrl ?>img/p2-3b.png">
        <div class="swiper-pagination"></div>
        <img class="p2-t3 simg" src="<?php echo $cdnUrl ?>img/p2-t3.png?v=5">
     </div>
     <div class="p2-next simg"></div>
     <img class="p2-shou simg" src="<?php echo $cdnUrl ?>img/p2-shou.png">

   </div>

 
</div>

<div class="p3 page">
	  
	  <div class="p3-box" id="p3box">
	  	  <img class="ltop p2-bg" src="<?php echo $cdnUrl ?>img/p2.jpg">
	      <img class="p3-logo simg" src="<?php echo $cdnUrl ?>img/p3-logo.png?v=2">

	      <img class="p2-end w100" src="<?php echo $cdnUrl ?>img/p2-f1.png">
	      <div class="thebg">
	      	<img class="p3-t3 w100" src="<?php echo $cdnUrl ?>img/p3-t3.png">
	        <img class="p3-1 w100" src="<?php echo $cdnUrl ?>img/p3-1.png?v=2">
	        <img class="p3-t1 w100" src="<?php echo $cdnUrl ?>img/p3-t1-1.png">
	        <img class="p3-t2 w100" src="<?php echo $cdnUrl ?>img/p3-t2.png">
	      </div>
	  </div>
	  <div class="theb2">
          <img class="p3-ant1 simg" src="<?php echo $cdnUrl ?>img/p3-ant1.png?v=2">
      </div>
      
      <img class="p3-press" id="p3-press" src="">
      <img class="p3-back simg" src="<?php echo $cdnUrl ?>img/p3-back.png?v=2">
      
</div>

 
<div class="pop tip">
     
    <div class="pop-t1"><div class="pop-close"></div></div>
</div>
 
  

<div class="js_dialog">
       <div class="weui-mask"></div>
       <div class="weui-dialog">
                <div class="weui-dialog__bd weui-msg"></div>
                <div class="weui-dialog__ft">
                    <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary weui-btn">知道了</a>
                </div>
        </div>
</div>
<div class="weui-toast weui_loading_toast hide">
	<div class="weui_loading"><i class="weui-loading weui-icon_toast"></i></div>
	<p class="weui-toast_content">照片合成中</p>
</div>
  
 
</div>
<script src="https://mat1.gtimg.com/libs/jquery2/2.1.4/jquery2.min.js"></script>
<script type="text/javascript" src="./js/swiper.js"></script>
<script src="js/html2canvas.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<?php include 'test-js.php'; ?>
</body></html>